//
//  BoletoUtilTests.m
//  iBoleto
//
//  Created by Diego Fincatto on 13/01/11.
//  Copyright 2011 Wmix Distribuidora Ltda. All rights reserved.
//

#import "BoletoUtilTests.h"
#import "BoletoUtil.h"

@implementation BoletoUtilTests

- (void)testCalculaDVCodigoBarras {
    STAssertEqualObjects(@"7", [BoletoUtil calculaDVCodigoBarras:@"1049435600000042710003113488712000045996941"], nil);
}

- (void)testCalculaDVNossoNumero {
    STAssertEqualObjects(@"7", [BoletoUtil calculaDVNossoNumero:@"8"@"12000045996941"], nil);
    STAssertEqualObjects(@"0", [BoletoUtil calculaDVNossoNumero:@"82"@"62015002"], nil);
}

@end
